home *** CD-ROM | disk | FTP | other *** search
- Path: news.ptd.net!news
- From: jeffw667@postoffice.ptd.net (Jeffrey Wilson)
- Newsgroups: comp.lang.c
- Subject: Please Assist Student programming C
- Date: 18 Mar 1996 03:49:06 GMT
- Organization: ProLog - PenTeleData, Inc.
- Message-ID: <4iimfi$dk@ns2.ptd.net>
- NNTP-Posting-Host: cs1-11.pcn.ptd.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- Can someone please help me ??? I am getting a "incompatibility type
- for arg 2 of pow" Here is my code:
-
- double expo(void)
- {
- double base = 0;
- double expon = 0;
- double result = 0;
-
- printf("Input the base of the calculation: \n");
- scanf("%lf",&base);
- printf("Input the exponent: \n");
- scanf("%lf",&expon);
-
- result = pow(base,expon);
-
- printf("the answer of %lf raised to the %lf power is : %lf
- \n",base,expon,result);
-
- return(result);
- }
-
-
- Please help. My instructor is gone for the week and I need to have
- this working by Friday the 22.
-
- Thanks for any help
-
- Please E-mail me at jeffw667@postoffice.ptd.net
-
-